<?php
namespace app\oa\widget;

use app\oa\model\Task;
use think\Controller;

class Widgets extends Controller {
    public function upload($uploadUrl, $task) {
        $this->assign("uploadUrl", $uploadUrl);
        $this->assign("task", $task);
        return $this->fetch('widgets/task_list');
    }

    public function fileList($task) {
        $this->assign("task", $task);
        return $this->fetch("widgets/file_list");
    }
}